package com.xlzcx.xltz.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xlzcx.xltz.utils.BaseEntity;
import com.xlzcx.xltz.utils.AarrayJsonSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 作者: 李咨辰
 * 文件名: Quest.java
 * 路径: com.xlzcx.xltz.entity
 * 时间: 2024-10-14 13:29
 * 版本: 1.0
 * 描述: TODO 任务
 **/
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode(callSuper = true)
@Data
public class AQuest extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;//编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long initiatorId;//发起人编号
    @JsonSerialize(using = ToStringSerializer.class)
    private Long receiverId;//接收人编号
    private int publishStatus;//0.进行中1.售后
    private String title;//需求标题
    private String content;//需求内容
    private String sortId;//分类编号
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String cover;//图片/视频
    private int orderStatus;//订单状态 0.普通 1.加急
    @JsonSerialize(using = AarrayJsonSerializer.class)
    private String address;//地址
    private String city;//详细地址
    private double price;//报酬
    private String name;//称呼
    private String phone;//手机号
    private String subsidy;//补贴
    private Date cutoffTime;//截止时间
    private Date createTime;//创建时间
    private Date updateTime;//修改时间
    private Integer isDelete;//软删除
}
